home *** CD-ROM | disk | FTP | other *** search
- /***************************************************************************/
- /* File: SHELLINF.C */
- /* */
- /* Function: Output information about the workstation shell. */
- /* */
- /* Usage: shellinf */
- /* */
- /* Functions Called: GetNetwareShellVersion */
- /* ISShellLoaded */
- /* */
- /***************************************************************************/
- #include <stdio.h>
- #include <string.h>
-
- #include "netware.h"
-
- static char *types[] = { " OS type"," OS version",
- " HWARE type","Short HW type"};
-
- void main(void)
- {
- char info[40];
- byte major_v,minor_v,level;
- char *p;
- int i;
-
- if (IsShellLoaded() != SUCCESS)
- {
- printf("*** No netware shell loaded ***\n");
- return;
- }
-
- GetNetwareShellVersion(info,&major_v,&minor_v,&level);
-
- printf("\n Shell: %02.2d.%02.2d%c\n\n",major_v,minor_v,level+'A');
- p=info;
- for(i=0;i<4;i++)
- {
- printf("%s: %s\n",types[i],p);
- p+=strlen(p);
- p++;
- }
- }
-
-